<?php

/**
 *  @FileComment            [后台用户角色中间表模型]
 *  @ProjectName             项目名称：JDshop
 *  @FileName                   文件名称：AdminRoleModel.class.php
 *  @Author                       yuerengui <596580041@qq.com>
 *  @Date                          2014-10-26 1:24:23
 *  *
 */
class AdminRoleModel extends Model {

        public $table = 'admin_role';

        public function del_data($aid, $rid) {
                return $this->where(array('aid' => $aid, 'rid' => $rid))->del();
        }

        public function add_data() {
                return $this->add();
        }

        public function get_one_data($aid, $rid) {
                return $this->where(array('aid' => $aid, 'rid' => $rid))->find();
        }

}
